package com.lanchetech.dao;
import java.util.List;

import com.lanchetech.entity.CategorySpec;
import com.lanchetech.entity.Spec;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;

@Mapper
public interface CategorySpecMapper {
    int insert(CategorySpec record);

    int insertSelective(CategorySpec record);

    int deleteBySpecId(@Param("specId") Long specId);

    int batchInsert(@Param("list") List<Long> list, @Param("categoryId") Long categoryId);

    int deleteByCategoryId(@Param("categoryId")Long categoryId);

    List<CategorySpec> findAllByCategoryId(@Param("categoryId")Long categoryId);

    List<Spec> findAllSpecByCategoryId(@Param("categoryId")Long categoryId);
}